home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / d / devpak / devpakv3.01kickstartv1.3b.dms / devpakv3.01kickstartv1.3b.adf / include / intuition / preferences.i < prev    next >
Text File  |  1991-11-20  |  8KB  |  261 lines

  1.     IFND    INTUITION_PREFERENCES_I
  2. INTUITION_PREFERENCES_I SET    1
  3. **
  4. **    $Filename: intuition/preferences.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND EXEC_TYPES_I
  14.     INCLUDE "exec/types.i"
  15.     ENDC
  16.  
  17.     IFND    DEVICES_TIMER_I
  18.     include "devices/timer.i"
  19.     ENDC
  20.  
  21. ; ======================================================================== 
  22. ; === Preferences ======================================================== 
  23. ; ======================================================================== 
  24.  
  25. ; these are the definitions for the printer configurations 
  26. FILENAME_SIZE EQU   30        ; Filename size 
  27.  
  28. POINTERSIZE    EQU (1+16+1)*2    ; Size of Pointer data buffer 
  29.  
  30. ; These defines are for the default font size.    These actually describe the
  31. ; height of the defaults fonts.     The default font type is the topaz
  32. ; font, which is a fixed width font that can be used in either 
  33. ; eighty-column or sixty-column mode.  The Preferences structure reflects
  34. ; which is currently selected by the value found in the variable FontSize,
  35. ; which may have either of the values defined below.  These values actually
  36. ; are used to select the height of the default font.  By changing the
  37. ; height, the resolution of the font changes as well.
  38. TOPAZ_EIGHTY    EQU 8    
  39. TOPAZ_SIXTY    EQU 9
  40.  
  41. ; ------------------------------------------------------------------------
  42.  STRUCTURE Preferences,0
  43.  
  44.     ; the default font height
  45.     BYTE pf_FontHeight        ; height for system default font
  46.  
  47.     ; constant describing what's hooked up to the port
  48.     BYTE pf_PrinterPort ; printer port connection
  49.  
  50.     ; the baud rate of the port
  51.     WORD pf_BaudRate        ; baud rate for the serial port
  52.     
  53.     ; various timing rates
  54.     STRUCT pf_KeyRptSpeed,TV_SIZE ; repeat speed for keyboard
  55.     STRUCT pf_KeyRptDelay,TV_SIZE ; Delay before keys repeat
  56.     STRUCT pf_DoubleClick,TV_SIZE ; Interval allowed between clicks
  57.  
  58.     ; Intuition Pointer data
  59.     STRUCT pf_PointerMatrix,POINTERSIZE*2 ; Definition of pointer sprite
  60.     BYTE pf_XOffset    ; X-Offset for active 'bit'
  61.     BYTE pf_YOffset    ; Y-Offset for active 'bit'
  62.     WORD pf_color17    ;********************************
  63.     WORD pf_color18    ; Colours for sprite pointer
  64.     WORD pf_color19    ;********************************
  65.     WORD pf_PointerTicks    ; Sensitivity of the pointer    
  66.  
  67.     ; Workbench Screen colors
  68.     WORD pf_color0    ;********************************
  69.     WORD pf_color1    ;  Standard default colours
  70.     WORD pf_color2    ;   Used in the Workbench
  71.     WORD pf_color3    ;********************************
  72.  
  73.     ; positioning data for the Intuition View
  74.     BYTE pf_ViewXOffset        ; Offset for top lefthand corner
  75.     BYTE pf_ViewYOffset        ; X and Y dimensions
  76.     WORD pf_ViewInitX        ; View initial offsets at startup
  77.     WORD pf_ViewInitY        ; View initial offsets at startup
  78.  
  79.     BOOL EnableCLI    ; CLI availability switch
  80.  
  81.     ; printer configurations
  82.     WORD pf_PrinterType        ; printer type
  83.     STRUCT pf_PrinterFilename,FILENAME_SIZE ; file for printer
  84.  
  85.     ; print format and quality configurations
  86.     WORD pf_PrintPitch        ; print pitch
  87.     WORD pf_PrintQuality    ; print quality
  88.     WORD pf_PrintSpacing    ; number of lines per inch
  89.     WORD pf_PrintLeftMargin ; left margin in characters
  90.     WORD pf_PrintRightMargin    ; right margin in characters
  91.     WORD pf_PrintImage        ; positive or negative
  92.     WORD pf_PrintAspect        ; horizontal or vertical
  93.     WORD pf_PrintShade        ; b&w, half-tone, or color
  94.     WORD pf_PrintThreshold  ; darkness ctrl for b/w dumps
  95.  
  96.  
  97.     ; print paper description
  98.     WORD pf_PaperSize        ; paper size
  99.     WORD pf_PaperLength        ; paper length in lines
  100.     WORD pf_PaperType        ; continuous or single sheet
  101.  
  102.     ; Serial device settings: These are six nibble-fields in three bytes
  103.     ; (these look a little strange so the defaults will map out to zero)
  104.     BYTE pf_SerRWBits        ; upper nibble = (8-number of read bits)
  105.                 ; lower nibble = (8-number of write bits)
  106.     BYTE pf_SerStopBuf        ; upper nibble = (number of stop bits - 1)
  107.                 ; lower nibble = (table value for BufSize)
  108.     BYTE pf_SerParShk        ; upper nibble = (value for Parity setting)
  109.                 ; lower nibble = (value for Handshake mode)
  110.  
  111.     BYTE pf_LaceWB    ; if workbench is to be interlaced
  112.  
  113.     STRUCT pf_WorkName,FILENAME_SIZE ; temp file for printer
  114.  
  115.     BYTE pf_RowSizeChange    ; 
  116.     BYTE pf_ColumnSizeChange       ;
  117.  
  118.     UWORD   pf_PrintFlags    ; user preference flags
  119.     WORD    pf_PrintMaxWidth    ; max width of printed picture in 10ths/inch
  120.     UWORD   pf_PrintMaxHeight    ; max height of printed picture in 10ths/inch 
  121.     UBYTE   pf_PrintDensity    ; print density
  122.     UBYTE   pf_PrintXOffset    ; offset of printed picture in 10ths/inch
  123.  
  124.     UWORD   pf_wb_Width        ; override default workbench width
  125.     UWORD   pf_wb_Height    ; override default workbench height
  126.     UBYTE   pf_wb_Depth        ; override default workbench depth
  127.  
  128.     UBYTE   pf_ext_size        ; extension information -- do not touch!
  129.                 ; extension size in blocks of 64 bytes
  130.     LABEL pf_SIZEOF
  131.  
  132.  
  133. ; === Preferences definitions ===========================================
  134.  
  135. ; Workbench Interlace (use one bit)
  136. LACEWB        EQU $01
  137.  
  138. ; PrinterPort
  139. PARALLEL_PRINTER EQU    $00
  140. SERIAL_PRINTER    EQU $01
  141.  
  142. ; BaudRate
  143. BAUD_110    EQU $00
  144. BAUD_300    EQU $01
  145. BAUD_1200   EQU $02
  146. BAUD_2400   EQU $03
  147. BAUD_4800   EQU $04
  148. BAUD_9600   EQU $05
  149. BAUD_19200  EQU $06
  150. BAUD_MIDI   EQU $07
  151.  
  152. ; PaperType
  153. FANFOLD        EQU $00
  154. SINGLE        EQU $80
  155.  
  156. ; PrintPitch
  157. PICA        EQU $000
  158. ELITE        EQU $400
  159. FINE        EQU $800
  160.  
  161. ; PrintQuality
  162. DRAFT        EQU $000
  163. LETTER        EQU $100
  164.  
  165. ; PrintSpacing
  166. SIX_LPI        EQU $000
  167. EIGHT_LPI   EQU $200
  168.  
  169. ; Print Image
  170. IMAGE_POSITIVE    EQU $00
  171. IMAGE_NEGATIVE    EQU $01
  172.  
  173. ; PrintAspect
  174. ASPECT_HORIZ    EQU $00
  175. ASPECT_VERT EQU $01
  176.  
  177. ; PrintShade
  178. SHADE_BW    EQU $00
  179. SHADE_GREYSCALE EQU $01
  180. SHADE_COLOR EQU $02
  181.  
  182. ; PaperSize
  183. US_LETTER   EQU $00
  184. US_LEGAL    EQU $10
  185. N_TRACTOR   EQU $20
  186. W_TRACTOR   EQU $30
  187. CUSTOM        EQU $40
  188.  
  189. ; PrinterType
  190. CUSTOM_NAME EQU $00
  191. ALPHA_P_101 EQU $01
  192. BROTHER_15XL    EQU $02
  193. CBM_MPS1000 EQU $03
  194. DIAB_630    EQU $04
  195. DIAB_ADV_D25    EQU $05
  196. DIAB_C_150  EQU $06
  197. EPSON        EQU $07
  198. EPSON_JX_80 EQU $08
  199. OKIMATE_20  EQU $09
  200. QUME_LP_20  EQU $0A
  201. ; new printer entries, 3 October 1985
  202. HP_LASERJET EQU $0B
  203. HP_LASERJET_PLUS EQU    $0C
  204.  
  205.  
  206. ; Serial Input Buffer Sizes
  207. SBUF_512    EQU    $00
  208. SBUF_1024    EQU    $01
  209. SBUF_2048    EQU    $02
  210. SBUF_4096    EQU    $03
  211. SBUF_8000    EQU    $04
  212. SBUF_16000    EQU    $05
  213.  
  214. ; Serial Bit Masks
  215. SREAD_BITS  EQU $F0 ; pf_SerRWBits
  216. SWRITE_BITS EQU $0F
  217.  
  218. SSTOP_BITS  EQU $F0 ; pf_SerStopBuf
  219. SBUFSIZE_BITS    EQU $0F
  220.  
  221. SPARITY_BITS    EQU $F0 ; pf_SerParShk
  222. SHSHAKE_BITS    EQU $0F
  223.  
  224. ; Serial Parity (high nibble, but here shifted right, as by C-macro SPARNUM)
  225. SPARITY_NONE    EQU    $00
  226. SPARITY_EVEN    EQU    $01
  227. SPARITY_ODD    EQU    $02
  228.  
  229. ; Serial Handshake Mode (low nibble, mask by SHSHAKE_BITS)
  230. SHSHAKE_XON    EQU    $00
  231. SHSHAKE_RTS    EQU    $01
  232. SHSHAKE_NONE    EQU    $02
  233.  
  234. ; new defines for PrintFlags
  235. CORRECT_RED        EQU $0001     ; color correct red shades
  236. CORRECT_GREEN        EQU $0002     ; color correct green shades 
  237. CORRECT_BLUE        EQU $0004     ; color correct blue shades
  238.  
  239. CENTER_IMAGE        EQU $0008       ; center image on paper
  240.  
  241. IGNORE_DIMENSIONS   EQU $0000     ; ignore max width/height settings
  242. BOUNDED_DIMENSIONS  EQU $0010     ; use max width/height as boundaries
  243. ABSOLUTE_DIMENSIONS EQU $0020     ; use max width/height as absolutes
  244. PIXEL_DIMENSIONS    EQU $0040     ; use max width/height as prt pixels
  245. MULTIPLY_DIMENSIONS EQU $0080     ; use max width/height as multipliers
  246.  
  247. INTEGER_SCALING        EQU $0100     ; force integer scaling
  248.  
  249. ORDERED_DITHERING   EQU $0000     ; ordered dithering
  250. HALFTONE_DITHERING  EQU $0200     ; halftone dithering
  251. FLOYD_DITHERING        EQU $0400     ; floyd-steinberg dithering
  252.  
  253. ANTI_ALIAS        EQU $0800     ; anti-alias image
  254. GREY_SCALE2        EQU $1000     ; for use with hi-res monitor
  255.  
  256. CORRECT_RGB_MASK    EQU (CORRECT_RED+CORRECT_GREEN+CORRECT_BLUE)
  257. DIMENSIONS_MASK        EQU (BOUNDED_DIMENSIONS+ABSOLUTE_DIMENSIONS+PIXEL_DIMENSIONS+MULTIPLY_DIMENSIONS)
  258. DITHERING_MASK        EQU (HALFTONE_DITHERING+FLOYD_DITHERING)
  259.  
  260.     ENDC    ; INTUITION_PREFERENCES_I
  261.